<?php
class IM_C_Base extends BaseController {
	public $o_navi;
	public $arr_scripts;
	
	private $arr_cssScripts;
	private $arr_jsScripts;
	
	public function start()
	{
		$arr_appConf = $this->o_configuration->getCurrentAppConf();
		$this->arr_cssScripts = $arr_appConf['css_style_sheets'];
		$this->arr_jsScripts = $arr_appConf['js_files'];
		//$this->registry->template->s_jsLoadFunction = fw_util_getjsLoadFunction();
		$this->registry->template->arr_jsScriptUrls = $this->arr_jsScripts;
		$this->registry->template->arr_cssSriptUrls = $this->arr_cssScripts;
	}
	
	public function showNavi()
	{
		$arr_options = array(
			'pretty_urls'=> true,
			'is_sub_navi'=> false
		);
		//include the applications declaration file
		include C_FW_customPackage.'configs/applications.php';
		$this->o_navi = new ClaycodeNaviMenu($arr_applications, $arr_options);
		$this->registry->template->s_navi = $this->o_navi->getNaviHtml();
	}
	
	public function showBottomLeftNavi()
	{
		$arr_options = array(
			'pretty_urls'=> true,
			'is_sub_navi'=> false
		);
		
		$arr_applications = array(
			array(
				'app_ident'=> 'BeDiscovered',
				'app_display_name'=> 'be discovered',
				'controller_class'=> 'IM_C_Pub_BeDiscovered',
				'controller_class_alias'=> 'BeDiscovered',
				'hidden'=> false
			)/*,
			
			array(
				'app_ident'=> 'PrivacyPolicy',
				'app_display_name'=> 'privacy policy',
				'controller_class'=> 'IM_C_Pub_PrivacyPolicy',
				'controller_class_alias'=> 'PrivacyPolicy',
				'hidden'=> false
			)*/
		);	
		//include the applications declaration file
		$this->o_navi = new ClaycodeNaviMenu($arr_applications, $arr_options);
		$this->registry->template->s_botLeftNavi = $this->o_navi->getNaviHtml();
	}
	
}